home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / adidrv.zip / HPGL2.DOC < prev    next >
Text File  |  1991-02-19  |  44KB  |  1,046 lines

  1.                                   HP-GL/2.DOC
  2.                                   ----------
  3.          ADI LongPlot driver for the Hewlett Packard HP-GL/2 Plotters
  4.  
  5. Supported plotters include:
  6.      HP 7600 Series Electrostatic Plotter Models 
  7.      HP DraftMaster X Series
  8.      HP PaintJet XL with HP-GL/2 Language Cartridge
  9.      HP LaserJet III
  10.  
  11.                       HPGL2.EXE ver 1.09 for AutoCAD (TM)
  12.                         Copyright 1990, Autodesk, Inc.
  13.  
  14.                                  Revision 87
  15.                                 Feb. 4, 1991
  16.  
  17. License is granted for the use of this software and documentation on a
  18. no-cost, sharing basis.  You may distribute and copy this software
  19. freely as long as it remains a completely unaltered package and is not
  20. sold for profit.
  21.  
  22. INTRODUCTION
  23.  
  24. This document explains the installation and use of HPGL2.EXE, an
  25. Autodesk Device Interface (ADI) driver designed to run HP-GL/2
  26. language plotters (listed above) with AutoCAD and AutoSketch.
  27.  
  28. Please read the AutoCAD Installation and Performance Guide concerning
  29. plotting to Hewlett-Packard Plotters, the AutoCAD Users Guide section
  30. on plotting, and your plotter manual.  This driver was developed by
  31. Autodesk, Inc.  and does not represent an endorsement of any
  32. particular product.
  33.  
  34. Autodesk, Inc. makes no warranty, either expressed or implied,
  35. including but not limited to any implied warranties of merchantability
  36. or fitness for a particular purpose, regarding these materials and
  37. makes such materials available on an "as-is" basis.
  38.  
  39. ADI Drivers -
  40.  
  41. This driver is a real mode ADI plotter driver.  ADI is an acronym for the
  42. Autodesk Device Interface specification that was used to create this
  43. driver.
  44.  
  45. You can use this driver (HPGL2.EXE) with any version of
  46. AutoCAD that supports ADI plotter drivers.  Please see the AutoCAD
  47. Installation and Performance Guide, which shipped with your version of
  48. AutoCAD, to see if you have such a driver option.  This driver was
  49. tested using AutoCAD Release 10 and Release 11.
  50.  
  51. ***************************************************************************
  52.                       LIMITATIONS OF THIS DRIVER
  53.  
  54. Real mode ADI plotter drivers, such as HPGL2.EXE have limited
  55. communication with AutoCAD, compared to internal or protected mode drivers.
  56. Due to this, real mode ADI drivers lack some of the features of internal
  57. drivers or protected mode ADI drivers.
  58.  
  59. For example, there is no provision for AutoCAD to tell a real mode ADI
  60. driver about paper sizes or units of measurement (inches vs millimeters).
  61. There is no way for a real mode ADI driver to inform AutoCAD of its
  62. linetypes, changes in units of measurement, scaling or paper size. Thus
  63. it is sometimes necessary for you to answer similar questions, once for
  64. AutoCAD and once for the real mode ADI driver.
  65.  
  66. Real mode ADI drivers have no way of storing your configuration choices in
  67. AutoCAD's configuration or drawing files. This driver is primarily configured
  68. by command line options. Your choices for these options persist until you
  69. reboot the computer or reload the driver with new options. Reloading a real
  70. mode ADI driver without rebooting your computer will waste memory because
  71. the driver is loaded twice. Reloading the driver with different command line
  72. options will, in some cases, require you to also reconfigure AutoCAD so
  73. that AutoCAD and the driver agree on the options you have selected.
  74.  
  75. NOTE:  Because of the way ADI drivers function, error trapping and
  76. user prompts will not function in a familiar way.
  77.  
  78. In this driver, SPACE BAR acts as a space bar, not as a command line
  79. terminator, all user input prompts are terminated by a CARRIAGE
  80. RETURN, and CONTROL-C may have to be repeated more than once.
  81. ESC may have to be repeated more than once.  Please be patient, most
  82. requests for termination will be accepted and acted upon.
  83.  
  84. Protected mode ADI drivers do not have these limitations.
  85.  
  86. ****************************************************************************
  87.  
  88. COPYING THE DRIVER SOFTWARE
  89.  
  90. The HPGL2 plotter driver w/LongPlot for AutoCAD comes with a help
  91. file, HPGL2.HLP for on-line command line options.  You probably will
  92. want to install the driver in the same directory where you store
  93. AutoCAD.  Here's how to copy the driver software onto your hard disk.
  94. The example assumes an AutoCAD directory is on drive C and named
  95. \ACAD and the distribution disk for the driver is in drive A:
  96.  
  97.     1.  Change to the directory where you store AutoCAD
  98.  
  99.         C:> CD ACAD [Return]
  100.  
  101.     2.  Insert the ADI Drivers diskette in drive A.
  102.  
  103.     3.  Copy the driver files to your hard disk:
  104.  
  105.         C:> COPY A:HPGL2.*  [Return]
  106.  
  107.  
  108. INSTALLING THE HPGL2 ADI DRIVER
  109.  
  110. The ADI HP-GL/2 plotter driver must be installed (loaded into memory)
  111. prior to entering AutoCAD.  It is a "terminate and stay resident"
  112. (TSR) software program.  Once loaded, it remains in memory until you
  113. turn off or reboot your computer.
  114.  
  115. THE IMPORTANCE OF COMMAND LINE SWITCHES
  116.  
  117. As discussed above, your ADI driver does not have the ability to communicate
  118. with AutoCAD to modify plot specifications. Thus, these can only be set at the
  119. time of driver installation by using the command line switches (options)
  120. listed below. Think through your plotting requirements prior to installing
  121. the HPGL2 driver as it will remain in memory until you turn off or reboot
  122. your computer. Remember that you must configure AutoCAD compatibly with the
  123. options you select on installing this driver.
  124.  
  125. If you plan to use the same command line options each time you use this
  126. driver, you may want to create a small batch file to invoke the driver
  127. with your selected options, or you may want to add this command line to
  128. your autoexec.bat file.
  129.  
  130. To install the driver:
  131.  
  132.     C:> HPGL2 [options] [Return]
  133.  
  134. The HPGL2 defaults are listed below.  To change this you can include
  135. one or more of the following options on the command line:
  136.  
  137.  
  138. HPGL2  -Lx [Return]  Where x is 2 or 3 for LPT2 or LPT3.
  139.         Specify a parallel port other than the default (LPT1).
  140.  
  141. HPGL2  -Cx [Return]  Where x is 1 or 2 (COM1 or COM2).
  142.          Specify a serial port instead of the default parallel port.
  143.  
  144. HPGL2  -M [Return]
  145.           Specify the plot sizes in millimeters.
  146.           Default plot sizes are in inches.
  147.  
  148.    ****   NOTE:  You must be sure to configure AutoCAD with the same option
  149.           you select here.
  150.  
  151. HPGL2  -Z [Return]
  152.           For a LaserJet III only.  Issues LaserJet specific commands 
  153.           that reset the LaserJet III.
  154.  
  155. HPGL2  -J [Return]
  156.           Specifies a PaintJet XL with the HPGL/2 cartridge. 
  157.  
  158. HPGL2  -A [Return]
  159.           For operation with a printer/plotter RAM buffer or an external
  160.       automatic data switch on the serial port.  It removes 
  161.       checking for a timeout value when outputting to a serial port.
  162.           It should be used cautiously because the HPGL2 driver 
  163.       program will loop constantly waiting for a ready signal 
  164.       from the device.  It will appear as if ACAD is hung up if
  165.       the serial cable is disconnected or the device goes off line.
  166.       There will be no error messages or chance for the user to quit.  
  167.  
  168. HPGL2  -R [Return]
  169.           Specify the number of additional copies you want of the plot.
  170.           (You will be asked how many additional copies you want at plot time).
  171.           This option is not available if you use the -S, AutoSketch option.
  172.  
  173.     ****  NOTE:  This feature is not supported on the HP LaserJet III.
  174.           Please see the Plotter Specific Information section for a full
  175.           discussion on how to generate multiple plots.
  176.  
  177. HPGL2  -P [Return]
  178.           Disable the page advance after the plot is completed. (See
  179.           "Notes On Operation" below for additional information.)
  180.  
  181. HPGL2  -E [Return]
  182.           Disable the automatic paper cutter (if your plotter has one).
  183.  
  184. HPGL2  -V [Return]
  185.           Change the default from line weights to pen speed
  186.           (otherwise the pen speed will be interpreted as a line
  187.            weight).
  188.  
  189.     ****   NOTE:  If you use a DRAFTMASTER RX, be sure to enable this
  190.            option. Otherwise unpredictable results may occur. AutoCAD
  191.            defaults to setting all pen speeds to 1, so you will probably
  192.            want to change AutoCAD's pen speed configuration if you pick
  193.            this option.
  194.  
  195. HPGL2  -Ixx [Return]  Where xx is the new interrupt number.
  196.            Install the driver for a different interrupt vector
  197.            (default is 78 HEX).
  198.  
  199. HPGL2  -Ffname [Return]
  200.            Specify the plot file name.  This will create a file named
  201.            'fname' on your default drive.
  202.  
  203.            You will have the chance to rename the file before
  204.            plotting (unless you also choose the -S AutoSketch option).
  205.            If you decide to abort the plot by issuing a Control-C (^C)
  206.            at this prompt, you must hit RETURN to complete the action.
  207.            The file will then be closed and erased.
  208.  
  209.            If you choose the -S option together with the -F option,
  210.            you will not be able to change the plot file name, nor will
  211.            you be able to use ^C to cancel at this stage. You can rename
  212.            each plot file after it has been produced (to avoid writing
  213.            over a previous file with the same name) or you may reboot
  214.            and reload the driver, giving a different plot file name.
  215.  
  216. HPGL2  -S [Return]
  217.            Install the driver to work with AutoSketch or ACAD 
  218.            scripts.  With this option, all prompts to the screen 
  219.            will be removed.  You will not be asked longplot or 
  220.        page size questions.  Longplots are disabled.  Script 
  221.            files can run without any user input with this option.
  222.  
  223.            Warning: Failure to do this when using AutoSketch will cause
  224.            your computer to hang up because AutoSketch does not allow
  225.            screen messages and keyboard input.
  226.  
  227. To install the driver using a combination of the above options:
  228.  
  229. HPGL2 -Fplotdata.plt -R -I7b -L2   This will do the following:
  230.          1.  Create a plot file 'plotdata.plt' of your drawing on your
  231.              default drive for plotting at a later time.
  232.          2.  Make multiple copies of the plot.
  233.          3.  The interrupt vector will be 7b (in hex).
  234.          4.  AutoCAD expects the plotter to be connected to parallel
  235.              port 2 (LPT2).
  236.  
  237. ** Note:  As with all TSR's each time you type in the command "HPGL2"
  238. another copy of the driver is loaded into memory, using up more RAM.
  239. You will need to "reboot" the system (to clear out any copies of
  240. HPGL2.EXE).  If you want to change any of the installation options
  241. for the driver, we suggest that you reset your system prior to
  242. reconfiguring the driver to save valuable memory for AutoCAD.
  243.  
  244. Reloading the driver without resetting the computer will use more
  245. memory but will activate any new command line options (if issued).
  246. Reloading the driver without resetting the computer is NOT recommended.
  247. You should exit all active programs and reset your computer prior to changing
  248. any of the command line options for this driver. 
  249.  
  250.  --- DO NOT RESET YOUR COMPUTER WHILE AUTOCAD IS RUNNING !  --- 
  251.  
  252. Exit AutoCAD prior to resetting the driver.
  253.  
  254. After resetting your computer, call HPGL2 with any new command
  255. line options, reconfigure AutoCAD if necessary and then plot as you
  256. would normally.
  257.  
  258.  
  259. CONFIGURING AUTOCAD FOR THE HP-GL/2 PLOTTER DRIVER
  260. --------------------------------------------------
  261.  
  262. It is necessary to configure AutoCAD for an ADI DRIVER.  You will
  263. need to do this before you use the HPGL2 ADI driver for the first
  264. time.  AutoCAD will save these settings until you change them. If you
  265. change the configuration of the HPGL2 ADI driver, you may also need to
  266. change your AutoCAD configuration. Refer to your AutoCAD Installation
  267. and Performance Guide for a more in-depth explanation of the steps below.
  268.  
  269. To configure AutoCAD for an ADI plotter driver, select from the
  270. AutoCAD Main Menu:
  271.  
  272.     Option 5 - Configure AutoCAD
  273.  
  274. Your current configuration will be displayed.  Press RETURN.
  275.  
  276. Then select from the Configuration Menu:
  277.  
  278.     Option 5 - Configure plotter
  279.  
  280.     Select ADI driver from the list of displayed plotters.
  281.  
  282. You will be asked to select the driver's output format.
  283.  
  284.      Select output format 3, installed ADI driver.
  285.  
  286. You will then be asked:
  287.  
  288.     Hexadecimal interrupt code (INT 0XXh) <78>:  Press RETURN
  289.  
  290. NOTE:  If you have used the -I command line option, be sure that you
  291. use the same hex address you used when installing the driver.
  292.  
  293. Next you will be asked questions about the number of pens, line types and
  294. speed.  Answer the questions as follows:
  295.  
  296. -------------------------------------------------------
  297.                        STEPS PER           PEN    LINE
  298. MODEL                    INCH      PENS   SPEED  STYLES
  299. -------------------------------------------------------
  300. HP7600                   1016       16     20      9
  301. HP Draftmaster RX        1016        8     60      9 (with -v option)
  302. HP PaintJet XL w/ HPGL2  1016       16     20      9
  303. HP LaserJet III          1016       16     20      9
  304. -------------------------------------------------------
  305.  
  306.     Does the plotter have multiple pens? <Y>  Answer Y
  307.  
  308.     How many pens does it have, 2 to 127 <current>:  Answer 16
  309.                            (NOTE:  The DRAFTMASTER RX has 8 pens.)
  310.  
  311.     Does the plotter have multiple dashed line styles? <Y>  Answer Y
  312.  
  313.     How many line styles are there, 2 to 127 <#>:  Answer 9
  314.  
  315.     Is the plotter variable speed? <Y>  Answer Y
  316.     NOTE:  The pen speed field will be used to define line widths unless
  317.            the driver was booted with the -v option.
  318.  
  319.     What is the numeric code for the fastest speed, 1 to 127 <#>:
  320.     Enter 20 unless the driver was booted with the -v option, then you
  321.     enter 60.
  322.  
  323. Next follows questions about media sizes.  Note that you are telling
  324.     AutoCAD about paper sizes here - the driver will ask you again at
  325.     plot time. If you are doing a Longplot, see the special section
  326.     which explains this in detail, below.
  327.  
  328.     (Remember 25.4 millimeters = 1 inch)
  329. ---------------------------------------------------------------------
  330.         paper sizes:         A        legal        B        roll
  331. MODEL                     X    Y      X    Y    X     Y    X    Y
  332. ---------------------------------------------------------------------
  333. HP7600 240D and 250                                        64" 23.10"
  334. HP7600 240D and 250                                       1626 587mm
  335.  
  336. HP7600 240E, 255 and 355                                   64" 35.10"
  337. HP7600 240E, 255 and 355                                  1626 892mm
  338.  
  339. HP Draftmaster RX                                          64" 33.60"
  340. HP Draftmaster RX                                         1626 853mm
  341.  
  342. HP PaintJet XL w/ HPGL2  10.72 8.17"          16.60" 10.60"
  343. HP PaintJet XL w/ HPGL2  272mm 207mm           421mm  269mm
  344.  
  345. HP LaserJet III          10.5" 8.00"  13.5" 8.00"
  346. HP LaserJet III          266mm 203mm  343mm 203mm
  347. ----------------------------------------------------------------------
  348.  
  349.     Specify plot size in millimeters? <?>  Answer Y or N as you wish.
  350.     Remember you have to configure the driver to agree with the answer
  351.     you give here!
  352.  
  353.     Maximum horizontal (X) plot size in inches <#>: (see table above)
  354.  
  355.     (See the section on Long Axis Plotting below for details on
  356.     the actual limitations of this driver.  This driver will
  357.     produce plots up to 50 feet in length.)
  358.  
  359.     Plotter steps per inch in the horizontal (X) direction <#>:
  360.                                      If using inches, use 1016.
  361.                                      For millimeters, use 40.
  362.  
  363. **** NOTE:  You must configure AutoCAD so it agrees with this driver
  364.      regarding units of inches or millimeters!
  365.  
  366.     Maximum vertical (Y) plot size in inches <#>: (see table above)
  367.      
  368.     Plotter steps per inch in the vertical (Y) direction <#>:
  369.                                     If using inches, use 1016.
  370.                                     For millimeters, use 40.
  371.  
  372.     NOTE:  You may enter larger page sizes, but due to the operation of
  373.     the paper handling mechanism, you may clip the plot in the y
  374.     direction.  Experimentation may allow you a modest increase in the
  375.     y plot size.
  376.  
  377. The next question will ask:
  378.  
  379.     Would you like to calibrate your plotter? <N>  Answer as you wish.
  380.  
  381. You will now go through the standard plotter configuration dialog.  Be
  382. sure to specify MAX paper size if you want to do Longplots.
  383.  
  384. If you have any questions see the Configuration section of the
  385. Installation & Performance Guide to AutoCAD.  Also see the AutoCAD
  386. main Reference Manual for AutoCAD details, and your plotter User's
  387. guide for plotter details.
  388.  
  389. AutoCAD will now be configured to plot using the installed ADI driver.
  390. It can do Long-Axis plots of up to fifty feet in length in addition to
  391. the normal paper sizes.
  392.  
  393.  
  394. PLOTTING ON A STANDARD SIZE PAPER (Sizes A-E)
  395. ---------------------------------------------
  396.  
  397. Either issue the Plot command from the drawing editor or select option
  398. 3 from AutoCAD's main menu.  You will be asked two additional
  399. questions before the plot is sent off to the plotter.  Make sure your
  400. plotter is cabled correctly, is turned on, and is On-Line. 
  401.  
  402. (NOTE:  If you have enabled the -S option for AutoSketch, you are
  403. limited to a page size of 11 inches and will not be asked the
  404. following configuration questions.)
  405.  
  406. After AutoCAD's plot questions, the HP-GL/2 ADI driver will prompt:
  407.  
  408.     Longplot(L) or Standard sheet(S) <S>?
  409.  
  410. Press the 's' key.
  411.  
  412. It will then prompt:
  413.  
  414.    X-Axis Length for Plot?
  415.  
  416. Answer with length appropriate for the plot size you told AutoCAD to draw
  417. in inches.  Make sure that the length is larger than the paper size you
  418. select, or your plot may be truncated along the X axis.
  419.  
  420. NOTE:  This step determines how far the paper on electrostatic or
  421. HP DraftMasters with roll paper will advance. This will
  422. save a considerable amount of paper if you do small-size plots.
  423. The answer you enter has no effect on the HP LaserJet printers,
  424. but you still have to answer with a legal number (more than
  425. 0 and less than 600").
  426.  
  427. If you specified the -M command line option for metric units, be
  428. sure to convert the length of the X-axis from inches into millimeters.
  429. To convert inches into millimeters, multiply the inches by 25.4.
  430.  
  431. PLOTTING A LONG AXIS PLOT (UP TO 50 feet)
  432. -----------------------------------------
  433.  
  434. NOTE:  Longplots are not possible with the HP LaserJet III or the HP
  435. PaintJet printers. Only roll-fed plotters can do longplots. Do not
  436. use these instructions for creating plots less than 64".
  437.  
  438. You may longplot to a file by using the -F command line option.
  439.  
  440. **********************************************************************
  441. AutoCAD doesn't directly support Longplots. AutoCAD can plot only
  442. about 65,535 plotter steps in each direction, which is about 64"
  443. for HP plotters which use 1016 steps per inch. Longplots are done by
  444. rescaling the plot data after it is sent to the driver, to magnify the
  445. plot at a small cost in plot resolution. Because there is no two-way
  446. communication between real mode ADI plotter drivers and AutoCAD, this
  447. scaling process is a bit complicated.
  448. ***********************************************************************
  449.  
  450. If you are using the HP Draftmaster RX for a LongPlot, you must follow
  451. the instructions in the HP User's Guide. In other words, you must have
  452. a black 0.3mm filer-tip pen (for plotter paper) or a 0.35mm drafting pen
  453. (for vellum or polyester film) in pen stall 8. Only these pens enable
  454. the plotter to detect the registration marks used for frame-to-frame
  455. alignment.
  456.  
  457. From AutoCAD's drawing editor, issue the Plot command or select option
  458. 3 from AutoCAD's main menu.  Specify the part of the drawing you wish
  459. to plot by answering the prompt:
  460.  
  461.     What to plot -- Display, Extents, limits, View, or Window <D>:
  462.  
  463. AutoCAD displays the basic plot specifications and asks if you want to
  464. change any of them:
  465.  
  466.     Do you want to change anything? <N>  -- Answer <Y>es
  467.  
  468. NOTE:  At this point DRAFTMASTER RX users should take a moment and
  469. review the pen settings. The pen speeds should be configured to the
  470. appropriate values for the pens you are using.
  471.  
  472. When you come to the question:
  473.  
  474.     Enter the Size or Width, Height (in units) <default>:  Answer MAX
  475.  
  476. Note:  MAX width should have been set to 64" in AutoCAD plotter configuration
  477. dialogue.  (See above).
  478.  
  479.  
  480. Then, when you come to this question:
  481.  
  482.     Specify scale by entering:
  483.     Plotted units=Drawing units or Fit or ? <default>:
  484.  
  485. IMPORTANT!! - SPECIAL PLOT SCALING REQUIREMENTS FOR LONG PLOTS
  486.  
  487. In order to create long-plots, HPGL2.EXE has to magnify the plot
  488. sent from AutoCAD. This question (asked by AutoCAD) must be answered
  489. with a scale factor which will keep the total number of plotter steps
  490. in each direction from AutoCAD below the 65024 (64" x 1016 steps per
  491. inch) limit. 
  492.  
  493. Let's start by considering the relatively simple situation where you
  494. want the plotted size to be the same as the AutoCAD drawing editor
  495. size you selected. In other words, we'll assume you would want to
  496. plot 1:1 if AutoCAD were able to create long plots directly. You may
  497. scale down your plot by using a value figured by the following formula:
  498.  
  499. DS - is the size of the long axis of your drawing in AutoCAD drawing
  500. editor units.
  501.  
  502. PS - is the size of the long axis you want your plot to have
  503.  
  504. M - is the amount of magnification which HPGL2 will have to use to make
  505. this drawing plot the desired size.
  506.  
  507. PSF - is the plotting scale factor to give AutoCAD
  508.  
  509. DSF - is the drawing scale factor (the relation of drawing units to plotted
  510.       units, e.g., 1"=12")
  511.  
  512. DSR - is the drawing scale ratio - if DSF is 1"=12", PSR is 1/12
  513.  
  514.  
  515.     PSF = DSF    (because you drew the same size you want to plot)
  516.  
  517.     M = DS / 64"  (round up to next largest whole number)
  518.  
  519.    In other words, divide the long axis of the Plotted Size by 64"
  520.    Then round the result up to the next largest integer (whole number).
  521.  
  522.     PSF is  1"=M"   
  523.  
  524.  
  525. The Scale Factor you enter for AutoCAD is 1=M, where M is the result
  526. from the calculation above. For example:
  527.  
  528.       Scale factor in AutoCAD           Drawing Size
  529.     Plotted size = Drawing size        (drawing units)
  530.     -----------------------------------------------------------
  531.                   1"=2"                64"  < DS < 128"
  532.                   1"=3"                128" < DS < 192"
  533.                   1"=4"                192" < DS < 256"
  534.                   - - - 
  535.                   1"=10"               576" < DS < 600" (maximum longplot)
  536.  
  537.  
  538. Example A: if your drawing is 49' long you would enter 1=10". 
  539. This is the size in drawing units (49' * 12"/foot = 588")
  540. divided by 64" (588 / 64 = 9.18) rounded up to M = 10.
  541.  
  542. Example B: If your drawing is 100 inches long, dividing by 64"
  543. yields 1.56. Rounding up, M = 2. So, if you enter 1"=2", AutoCAD
  544. converts the drawing to 50 inches.  But, when you
  545. actually plot, you'll tell the driver to produce a 100 inch
  546. drawing.
  547.  
  548. If you used a drawing size different from the final plotted size you
  549. desire, a slightly more complex computation is required.
  550.  
  551.  
  552.    M = PS / 64"
  553.  
  554.    PSF is   1" = (M / DSR)"
  555.  
  556. Example C: You want to draw at 1"=60". The long axis of your drawing is
  557. 1500' (300" when scaled 1"=60"). M = 300 / 60 = 5. PSF = M / 1 /60 = 300. 
  558.  
  559. Enter using the following table based on the drawing size in the drawing
  560. editor:
  561.  
  562.   Drawing         Plot
  563. Scale ratio   Scale factor   drawing size    plotted size   magnification
  564.  DSR              PSF            DS               PS              M
  565. ----------------------------------------------------------------------------
  566.  1/12     1"=24" (or 2')       64' < DS < 128'    64" < PS < 128"    2
  567.  1/12     1"=96" (or 8')         500'                 500"           8
  568.  1/60     1"=300" (or 25')      1500'                 300"           5
  569.  
  570.  
  571. ** Note:  These drawing units don't have to be inches, they can be
  572. kilometers or feet, but the same ratio applies between plotted units
  573. to drawing units.
  574.  
  575. Note that AutoCAD will calculate and display a maximum plottable area based
  576. on the scale factor you supplied. This will be smaller in each direction
  577. than your actual plot. The plot will be larger by the magnification M
  578. applied by the ADI driver. In Example B above, if your drawing is 100"x30",
  579. AutoCAD will display a maximum plot size of 50"x15". DISREGARD THIS MESSAGE!
  580. The true plot size will be controlled by the X-Axis length selection which
  581. you make at a subsequent prompt. If you correctly answer that prompt, your
  582. plot will really be 100"x30".
  583.  
  584. AutoCAD will prompt you to position paper.  Just press return.
  585. The HP-GL/2 ADI driver will prompt:
  586.  
  587.     Longplot(L) or Standard sheet(S) <S>?
  588.  
  589. Press the 'L' key.
  590.  
  591. It will then prompt:
  592.  
  593.     X-Axis Length for Plot?
  594.  
  595. Enter the number of inches that you want the plotted length of the
  596. long axis to be.  In Example B, above, you would enter 100
  597. (inches).  The ADI driver will automatically scale your drawing to
  598. fit within the desired length. This length will also control how
  599. far the plotter advances the paper at the end of the plot.
  600.  
  601.    For those who are curious, the driver actually will figure the
  602.    magnification factor, M, by which to scale plot data by (assuming inches)
  603.    figuring M = INT(X-Axis/64) + 1. In other words, it figures M just
  604.    as we did earlier. Then the driver scales up all plot data
  605.    by multiplying by M. The plot is magnified by this factor in both
  606.    X and Y directions. You may have noticed that any answer between
  607.    64 and 127 would produce the same magnification (but would advance
  608.    the paper a different amount at the end of the plot).
  609.  
  610. Note that you must enter a legal value here, otherwise the prompt will
  611. be repeated. A legal value is numeric, greater than 0 and less than
  612. 15240 mm or 600" (depending on your selection of inches or millimeters).
  613.  
  614. If you specified the -M command line option for metric units, be
  615. sure to convert the length of the X-axis from inches into millimeters.
  616. To convert inches into millimeters, multiply the inches by 25.4.
  617. Remember that AutoCAD must be configured for metric units if the driver
  618. is configured for metric units, and the plotter steps per millimeter
  619. must be properly set in AutoCAD.
  620.  
  621. If you installed the driver with the -R (replot) option you will
  622. be asked for the number of additional copies you want.
  623.  
  624. The HP-GL/2 ADI will send all the vectors off to the plotter's buffer
  625. or hard disk.  The pen plotters will automatically advance the page to
  626. plot each frame.  Raster devices will wait until the entire drawing is
  627. received before plotting.
  628.  
  629.  
  630. LINE WEIGHTS
  631. ------------
  632.  
  633. Some of the devices supported by this driver (e.g., HP7600, HP PaintJet
  634. and HP LaserJet III) are capable of plotting various width lines. These
  635. widths are sometimes called "line weights". AutoCAD has no provision for
  636. assigning different line weights to different pens. But the devices which
  637. support selectable line weights do not actually have physical pens, so
  638. it is possible to map AutoCAD's pen speed assignments to line weights.
  639.  
  640. This driver defaults to mapping the value in the pen speed field to
  641. line weights.
  642.  
  643. After you have selected what you are going to plot, you will be asked:
  644.  
  645. Do you want to change any of the above parameters? <N> -- Answer Yes
  646.  
  647. You will be shown a table of Entity Colors from 1 to 15 and the
  648. associated Pen Numbers, Line Types and Pen Speeds.
  649.  
  650. Substitute for the Pen Speed value, the line weight numbers from the
  651. following table:
  652.  
  653.                     Line Weight   Line Weight Widths
  654.                         No.          (mm.)
  655.                         ---       -----------
  656.                          1        .350 mm. (default)
  657.                          2        .075
  658.                          3        .100
  659.                          4        .120
  660.                          5        .187
  661.                          6        .250
  662.                          7        .300
  663.                          8        .400
  664.                          9        .500
  665.                         10        .600
  666.                         11        .700
  667.                         12        .800
  668.                         13        1.00
  669.                         14        1.25
  670.                         15        1.50
  671.                         16        1.75
  672.                         17        2.00
  673.                         18        2.50
  674.                         19        3.00
  675.                         20        4.00 
  676.  
  677.  
  678. For example if you assign to Entity Color #4 (cyan) Pen Speed 9 from
  679. the above table, all the color 4 entities drawn in AutoCAD will be
  680. plotted with lines .5 millimeters wide.  At run time configuration
  681. when you make the pen table assignments you would enter a pen
  682. speed of 9 to Layer/Color 4.  For example:
  683.  
  684.  Layer        Pen    Line    Pen
  685.  Color        No.    Type    Speed
  686. 4(cyan)         1        0       0         Pen Speed <0>:
  687.  
  688. Enter 9 and all entities of layer 4 will be plotter with a .5mm. line
  689. width. 
  690.  
  691. Do not use line weights greater than .8 mm to draw text.  The results
  692. are not satisfactory.
  693.  
  694. For faster throughput on pen plotters, use different width pens in the
  695. carousel to get pen widths.  Otherwise, the plotter will multi-stroke
  696. each vector.
  697.  
  698. MULTIPLE COPIES OF THE PLOT
  699. ---------------------------
  700.  
  701. If you included -R on the command line when you installed the HP-GL/2
  702. driver you will see the prompt:
  703.  
  704.     How many additional copies do you want? <0>
  705.  
  706. Enter the number you need and HP-GL/2 device will make that many 
  707. additional copies.
  708.  
  709. Note:  Insure that you have sufficient paper to produce the plots
  710. requested! Check the roll if you choose this option.
  711.  
  712. *** Note:  This option is not supported on LaserJet III printers. See
  713. the detailed discussion in the Plotter Specific Information section,
  714. later in this document.
  715.  
  716.  
  717. STOPPING THE PLOT
  718. -----------------
  719.  
  720. If you wish to stop the long axis drawing while AutoCAD is sending
  721. vectors to the plotter, abort it in the normal manner (Control C).  If
  722. plotting to a HP PaintJet XL, hold the On-Line button down until all
  723. the lights flash to clear the aborted plot.  If plotting to a HP 7600
  724. 240D/E, press the plotters' RESET button.  If plotting to a
  725. DraftMaster, press the CANCEL button.  If plotting to a HP 7600
  726. 250/255/355, delete the incomplete plot by pressing the Plot
  727. Management Key, select Queuing Operations and then select the plot and
  728. delete it from the queue.  Failure to reset the plotter may eventually
  729. produce a plot with portions of the terminated plot overlaying the
  730. successive plot.
  731.  
  732. If you wish to stop the plotter after AutoCAD has finished sending all
  733. the vectors and while it is still plotting, follow the procedures outlined
  734. above for your specific device.  Consult the plotters' User's manual for
  735. more information.
  736.  
  737.  
  738. NOTES ON OPERATION
  739. ------------------
  740.  
  741. Here are some tips for using the HP-GL/2 ADI driver with AutoCAD:
  742.  
  743.     1. You may wish to place a call to HPGL2.EXE in your AUTOEXEC.BAT
  744. file. This insures that you have loaded the driver before entering your
  745. application.
  746.  
  747.     2.  The plotter must be connected, turned on, and on line before
  748. you plot using the HP-GL/2 ADI driver.
  749.  
  750.     3.  Do not turn the plotter on and off in the middle of a
  751. plotting session.  An error message will be displayed if you try to
  752. use the ADI HP-GL/2 driver while the plotter is turned off.
  753.  
  754.     4.  If you turn off the automatic page advance with the command
  755. line option -P, you must manually activate the "PLOT" button
  756. on the electrostatic plotters and the HP PaintJet XL printer.
  757.  
  758.    5.   To send a plot file to the plotter, type the following at the
  759. DOS command line:
  760.  
  761. copy 'filename' lpt(n):     OR  copy 'filename' com(n):
  762.  
  763. where filename is the name of the file you wish to plot and lpt(n) or
  764. com(n) represents the port you have connected to your plotter.  If using
  765. the serial (com) port, you will first have to issue a mode statement to
  766. match the serial configuration of your plotter.
  767.  
  768.     6.  Disk Space Considerations: If you wish to plot to file (-f
  769. option) please insure that you have sufficient disk space to do so.
  770. File sizes are not dependent on the size of AutoCAD's DWG file, rather
  771. they depend on the contents of that file.  CHROMA.DWG, while only
  772. 12,359 bytes as distributed with AutoCAD, expands to almost 240k bytes
  773. when plotted to file.  This is due to the amount of fill the
  774. plotter must do to plot this file.  Each solid filled object
  775. in the drawing requires that the driver send pen movement information
  776. sufficient to fill the object.  Simple line drawings will require much
  777. less disk space.
  778.  
  779.     7.  Serial port may time out if your plotter is turned off, off
  780. line or not connected.  You will get a message asking if you want
  781. to quit, retry once, or retry constantly.  If you select constant retries,
  782. error checking to the serial port will be disabled.  Please be cautious.
  783.  
  784.  
  785. PLOTTER SPECIFIC INFORMATION
  786.  
  787.  
  788. HARDWARE REQUIREMENTS
  789.  
  790. The hardware requirements specific to using the HPGL2 plotter ADI
  791. driver with AutoCAD.
  792.  
  793.   o A parallel card and cable as described in the  AutoCAD Installation
  794.     & Performance Guide is your best choice for good performance with
  795.     raster devices such as electrostatic plotters, LaserJet III, and
  796.     the PaintJet XL printer.
  797.  
  798.  
  799.   o A serial card and cable is required for plotting to the DraftMaster
  800.     series plotters but can be used with the raster devices but plots
  801.     will take significantly longer to send to the plotter. We do not
  802.     recommend serial communications for raster devices.
  803.  
  804. *** Note:  The LaserJet III cabling diagram as shown in the AutoCad IG 
  805.     will not work with this driver.  Please see the section below
  806.     "HP LASERJET III IN HPGL2 MODE".
  807.  
  808.  
  809. HARDWARE INSTALLATION
  810.  
  811. The supported HP device must be connected to the computer with a
  812. standard Centronics-type parallel cable or a serial cable.  The
  813. AutoCAD Installation & Performance Guide section for Hewlett-Packard
  814. Plotters contains information regarding pin connections, switch
  815. settings, serial and parallel cable information for the HP7600 and HP
  816. Draftmaster plotters.
  817.  
  818.  
  819. HP 7600 SERIES OF MONOCHROME ELECTROSTATIC PLOTTERS 
  820.    This includes the 240D or E and the 250D or E.
  821.  
  822. If you want all solid black lines, assign all pen colors to black (pen 7).
  823. Otherwise, the non-black colors will print out in different shades of gray.
  824. NOTE:  This is a hardware specific feature and not all HPGL2 devices
  825. will operate in this manner.
  826.  
  827. DRAFTMASTER PLOTTERS
  828.  
  829. The following table details the actual physical plotting areas for each
  830. page size supported by the HP DraftMaster plotters:
  831.  
  832. Media     Plotting Width     Plotting Height        Media Orientation
  833. Size     Normal  Expanded    Normal  Expanded    (as loaded into plotter)
  834.   A       8.83"    9.66"      7.3"     8.1"             Portrait
  835.   B      14.83"   15.66"      9.8"    10.6"             Portrait
  836.   C      14.83"   15.66"     20.8"    21.6"             Landscape
  837.   D      31.83"   32.66"     20.8"    21.6"             Portrait
  838.   E      41.83"   42.66"     32.8"    33.6"             Portrait
  839.  
  840. Drawings created to plot on a HP DraftMaster should keep these physical
  841. limits in mind when they are initially created.  If plotting in expanded
  842. mode, lines drawn at the edge of the plot will be under the pinch rollers
  843. and could be subject to smearing.
  844.  
  845. COLOR ELECTROSTATIC AND PAINTJET XL
  846.  
  847. Assign pen numbers to their equivalent entity numbers to get a close match
  848. to the colors on the screen.
  849.  
  850. SERIAL MODE FOR PAINTJET XL AND LASERJET III.
  851.  
  852. Note:  Be sure to enter -J on the command line to use the PaintJet XL with a 
  853. serial cable.  If you are using a LaserJet, use the -Z option.
  854.  
  855. The following diagram illustrates how to connect the RS-232 Serial IO
  856. cable between the computer and the printer:
  857.  
  858.      Printer end                      Computer end
  859.          2  ----------------------------- 3
  860.          3  ----------------------------- 2
  861.          4  ---                       --- 4
  862.               |                       |
  863.          5  ---                       --- 5 
  864.          7  ----------------------------- 7
  865.          6  ---                       --- 6
  866.               |                       |
  867.         20  ---                       --- 20
  868.  
  869. You may also use the HP cable (part no. #17255D) or similar as
  870. described on page F-4 in "LaserJet III Printer User's Manual".
  871.  
  872. You must also configure the LaserJet III for Serial Operation, See
  873. Section K in "Your Guide to Setting Up Your LaserJet III Printer".
  874.  
  875. PAINTJET XL REAR PANEL SWITCHES
  876. To use the PaintJet XL with a serial cable, the switches should all 
  877. be set to the down position as follows:
  878.  
  879.         SWITCH          ON/UP   OFF/DOWN
  880.         Baud0                      X
  881.         Baud1                      X
  882.         Par0                       X
  883.         Par1                       X
  884.         DTR/XON-XOFF               X
  885.         MET/ENG                    X
  886.         ROM 8/PC 8                 X
  887.  
  888. To use the PaintJet XL with a parallel cable, the switches don't matter.
  889.  
  890.  
  891. HP LASERJET III IN HPGL2 MODE
  892.  
  893. Please use the -Z command line option to reset the LaserJet III after every 
  894. plot.
  895.  
  896. NOTE:  WE ARE UNABLE TO MAKE FILLS WORK CORRECTLY ON THE LASERJET III.
  897.        STRIPES OF WHITE SPACE WILL APPEAR WITHIN THE FILLED AREAS.
  898.        WE BELIEVE THIS TO BE A HARDWARE FEATURE AS OTHER HPGL2 DEVICES
  899.        CORRECTLY FILL WHEN USED WITH THIS DRIVER.  ALSO THERE IS A
  900.        PROBLEM WITH JAGGED EDGES ON FILLED AREAS.
  901.        
  902.  
  903. PAGE PROTECTION
  904. If you have a LaserJet III, the factory default setting for Page
  905. Protection is OFF.  This only allows 191 Kbytes for Image Memory that
  906. will result in a LaserJet III error message: Printer Overrun, and will
  907. only plot part of your drawing.  See page 4-25 for an explanation of
  908. Page Protection and read Chapter 4 for instructions on how to
  909. reconfigure your LaserJet III.  Setting Page Protection to "LTR/A4"
  910. should eliminate this problem.
  911.  
  912. HP LaserJet III's must have at least a one megabyte memory upgrade to
  913. work with the HPGL2 driver.
  914.  
  915. You can also set up the LaserJet III to plot legal size pages (7.50 x
  916. 13.5) by setting the page size from the printer's front panel.  To do
  917. so follow these steps:
  918.  
  919. 1) Turn the printer on if needed.
  920. 2) Take the printer off line.
  921. 3) Push the MENU button on the front panel until you see PAPER=LETTER.
  922. 4) Press the + button. The panel should say PAPER=LEGAL. 
  923. 5) Press the ENTER button to confirm the change.
  924. 6) Cycle through the menu items until you see MANUAL FEED=OFF.
  925. 7) Press the + button to change OFF to ON.
  926. 8) Press the ENTER button to confirm the change.
  927. 9) Press the MENU button until you see READY.
  928. 10) Put the printer back on line.
  929.  
  930. You must manually feed the legal size sheets to the printer.
  931.  
  932. LaserJet III and default pen width settings -
  933.  
  934. Due to the finer resolution of the LaserJet III, you must reconfigure
  935. the pen width settings or you will end up with "streaks" in filled
  936. areas and/or broken lines.  For testing purposes, any large filled
  937. area should show some streaking at the default pen width of .010 .
  938.  
  939. Start with a pen width of .009 and reduce the width by .001 until the
  940. plots are acceptable.
  941.  
  942. Multiple plots -
  943.  
  944. Because the LaserJet III does not support the RP (repeat plot) HPGL/2
  945. command, this command line option is ignored by the LaserJet III.  To
  946. generate multiple plots of the same plot, you must do the following:
  947.  
  948. Press the ON-LINE button to take the printer off-line.
  949. Press the menu button until COPIES appears in the menu.
  950. Press the "+" key until the number of copies you want appears in the menu.
  951. Press the ENTER key to store the configuration.
  952. Press the ON-LINE button to put the printer back ON-LINE.
  953.  
  954. Plot as you would normally. The printer will duplicate the plot the
  955. number of times you requested.
  956.  
  957. You must reset the number of copies to 0 by following the above
  958. procedure but using the "-" key instead of the "+" key to set the
  959. number of copies to 0.
  960.  
  961. USE WITH AUTOCAD SCRIPTS -S Option
  962. ------------------------
  963.  
  964. This driver normally asks you questions and accepts answers from the
  965. keyboard. It is impossible for a driver to do this when working with
  966. AutoCAD Scripts. The -S option suppresses all of this driver's questions
  967. and answers.  Just remember to use the -S flag on the control line.  
  968. This option was only tested for the LaserJet and PaintJet XL.  If 
  969. used with a roll feed device it will always advance the paper 45".
  970. You cannot do long axis plots with this command line option.
  971. With this option all printing to the screen is suppressed, therefore
  972. no error messages will be sent.  Make sure your device is connected,
  973. on-line, and filled with paper.
  974.  
  975. USE WITH AUTOSKETCH -S Option
  976. -------------------
  977.  
  978. This driver normally asks you questions and accepts answers from the
  979. keyboard. It is impossible for a driver to do this when working with
  980. AutoSketch. The -S option suppresses all of this driver's questions
  981. and answers.
  982.  
  983. The ADI HPGL2 driver may be used with AutoSketch.  Just remember to
  984. use the -S flag on the control line.  Failure to do so will hang up
  985. your system, requiring a re-boot.
  986.  
  987. Before every plot from AutoSketch using this ADI driver, you must make
  988. sure that the plotter is turned on, connected and on line.  Failure to
  989. do this will return you to the drawing screen without any error
  990. messages.  If the plotter goes off-line, runs out of paper or becomes
  991. disconnected at any time during the plot, no more data will be sent to
  992. the plotter and you will be returned to the drawing screen again
  993. without any error messages.  Therefore if your drawing is not being
  994. plotted at all or stops plotting and you are returned to the drawing
  995. editor, make sure the plotter has paper, is turned on, connected and
  996. on line.
  997.  
  998. AutoSketch must be reconfigured so that it knows you will be using an
  999. ADI driver to do plots.  To initiate AutoSketch's reconfiguration
  1000. type:
  1001.  
  1002.      C:>SKETCH /R [Return]
  1003.  
  1004. or if you're installing AutoSketch for the first time type:
  1005.  
  1006.      C:>SKETCH [Return]
  1007.  
  1008. Configure AutoSketch's plotter as a Autodesk Device Interface Plotter <4>.
  1009. AutoSketch will then prompt you to give it more information regarding this
  1010. ADI driver.  See the previous section titled 'CONFIGURING AUTOCAD FOR THE
  1011. HP-GL/2 PLOTTER DRIVER and Appendix B: the ADI Plotter section in
  1012. your AutoSketch Users Guide.
  1013.  
  1014. AutoSketch prompts you to indicate how your plotter is connected to your
  1015. computer, choose:
  1016.  
  1017.      2. Parallel port, system printer, or hardware handshake serial port.
  1018.  
  1019. Then follow the instructions in Configuring AutoSketch in Chapter 2 of the
  1020. AutoSketch Users Guide.
  1021.  
  1022. **Note:  When you open the plot area dialogue box, the values for x and
  1023. y may be incorrect.  Set them to the size of the paper you have in
  1024. your printer.  Rotating the plot may also work.
  1025.  
  1026. Plotting to file with AutoSketch:
  1027. ---------------------------------
  1028.  
  1029. Due to the way AutoSketch handles its drawing screen, the HPGL2 driver
  1030. will not output any questions to the user if it is configured with the
  1031. -S (Sketch) option.  If you plan to plot to file, you'll have to
  1032. follow the instructions in this document for the -f option and ignore
  1033. the plot to file documentation found in the AutoSketch manual.  This
  1034. will allow you to plot to a single file name given at the time you
  1035. install the driver.  You must reset your computer and reload the
  1036. driver to invoke a different file name, but it may be easier to exit
  1037. AutoSketch as you would normally (by either saving or discarding the
  1038. changes to your drawing), and renaming the plot file.
  1039.  
  1040.  
  1041. AutoCAD, AutoSketch and ADI are registered trademarks of Autodesk, Inc.  
  1042. IBM, PC, XT, AT are trademarks of International Business Machines Corporation.
  1043. HP is a trademark of Hewlett-Packard Corporation.
  1044.  
  1045.  
  1046.